package com.googlecode.pdfbricks.splitter;

import java.io.File;

import com.googlecode.pdfbricks.engine.to.FilePageRange;
import com.googlecode.pdfbricks.merger.MergeCommand;

public class SplittingBuilder {

	private SplitCommand cmd;
	
	public SplittingBuilder(){
		cmd=new SplitCommand();
	}
	
	public SplittingBuilder from(File file){
		cmd.setFromFile(file);
		return this;
	}
	
	public SplittingBuilder to(FilePageRange filePageRange){
		cmd.addToFilePageRange(filePageRange);
		return this;
	}
	
	public SplitCommand build(){
		return cmd;
	}
}
